package cate.common.table.res.racebadge.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.racebadge.row.RaceBadgeLimitRow;

public class RaceBadgeLimitSheet extends ESheet<RaceBadgeLimitRow> {
    @Override
    public String getSheetName() {
        return "族徽限制";
    }

    public RaceBadgeLimitRow getRowByLevel(int level){
        RaceBadgeLimitRow nowRow = null;
        for(RaceBadgeLimitRow row : list){
            if(level >= row.id){
                nowRow = row;
            }else{
                break;
            }
        }
        return nowRow;
    }
}
